package com.segersten.othello.service.akka.lobby;

import java.util.Map;

import com.segersten.othello.model.Color;

public class Game
{
    private BoardReference boardReference;
    private Map<Color, DomainPlayer> players;
    
    public Game()
    {
    }
    public Game(BoardReference boardReference, Map<Color, DomainPlayer> players)
    {
        this.boardReference = boardReference;
        this.players = players;
    }
    public BoardReference getBoardReference()
    {
        return boardReference;
    }
    public void setBoardReference(BoardReference boardReference)
    {
        this.boardReference = boardReference;
    }
    public Map<Color, DomainPlayer> getPlayers()
    {
        return players;
    }
    public void setPlayers(Map<Color, DomainPlayer> players)
    {
        this.players = players;
    }
    @Override
    public String toString()
    {
        return "Game [boardReference=" + boardReference + ", players=" + players + "]";
    }
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((boardReference == null) ? 0 : boardReference.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Game other = (Game) obj;
        if (boardReference == null) {
            if (other.boardReference != null)
                return false;
        } else if (!boardReference.equals(other.boardReference))
            return false;
        return true;
    }
    
    
    
}
